﻿@using Website.Models.Styling
@{
    List<MenuItem> items = null;
    if (this.Session["SubMenuItems"] != null)
    {
        items = this.Session["SubMenuItems"] as List<MenuItem>;
    }

}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
        <title>@ViewBag.Title</title>
        <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/Fonts/stylesheet.css")" />
        <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/StyleSheet.css")" />
        <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/multi-select.css")" />
        <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />
        <script src="http://code.jquery.com/jquery-1.9.1.js"> </script>
        <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"> </script>
        <script src="@Url.Content("~/Scripts/jquery.multi-select.js")"> </script>
        <script src="@Url.Content("~/Scripts/jquery-ui-1.10.3.custom.js")"> </script>

    </head>
    <body>
        <div class="topBar"></div>
        <div class="container">
            <div class="menu">
                @Html.Partial("~/Views/_Shared/MenuItem.cshtml", new MenuItem { ActionName = "Index", ControllerName = "Home", CurrentMenuSelectionName = "Home", ImageName = "home", Title = "Forside" })
                @Html.Partial("~/Views/_Shared/MenuItem.cshtml", new MenuItem { ActionName = "Index", ControllerName = "Profiles", CurrentMenuSelectionName = "Profiles", ImageName = "note", Title = "Profiler" })
                @Html.Partial("~/Views/_Shared/MenuItem.cshtml", new MenuItem { ActionName = "Index", ControllerName = "Activity", CurrentMenuSelectionName = "Events", ImageName = "date", Title = "Aktiviteter" })
                @Html.Partial("~/Views/_Shared/MenuItem.cshtml", new MenuItem { ActionName = "Index", ControllerName = "Reports", CurrentMenuSelectionName = "Reports", ImageName = "print", Title = "Rapporter" })
                @Html.Partial("~/Views/_Shared/MenuItem.cshtml", new MenuItem { ActionName = "Index", ControllerName = "User", CurrentMenuSelectionName = "User", ImageName = "user", Title = "Mine data" })            
            
                @Html.Partial("~/Views/_Shared/MenuItem.cshtml", new MenuItem { ActionName = "Index", ControllerName = "Admin", CurrentMenuSelectionName = "Admin", ImageName = "config", Title = "Admin" })        
            </div>
            <div class="subMenu">
                <div class="topBar"></div>

                @if (items != null)
                {
                    foreach (MenuItem item in items)
                    {
                        @Html.Partial("~/Views/_Shared/SubMenuItem.cshtml", item)
                    }
                }
            </div>


            <div class="content">
                <div class="padder">
                    @RenderBody()
                </div>
            </div>
            <div class="infobar">
                <img src="@Url.Content("~/Content/Logos/WT_logo_small.png")" alt="WelfareTech"/>

                <div class="float-right"> <img src="@Url.Content("~/Content/Logos/Datalogisk-Design.png")" alt="Datalogisk Design"/></div>

            </div>
        </div>
        
    </body>
</html>